package de.coe.hendricjabs.friendmap.server;

import java.util.HashMap;

import de.coe.hendricjabs.friendmap.ConversationTypes;

public class CoordinateRequest extends Request {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private HashMap<String, String> coordinates;
    
    public CoordinateRequest(String mobile, HashMap<String, String> coordinates) {
        super(ConversationTypes.CT_COORDINATES, mobile);
        setCoordinates(coordinates);
    }

    public CoordinateRequest() {
        super(ConversationTypes.CT_COORDINATES);
        setCoordinates(coordinates);
    }
    /**
     * @return the coordinates
     */
    public HashMap<String, String> getCoordinates() {
        return coordinates;
    }

    /**
     * @param coordinates the coordinates to set
     */
    public void setCoordinates(HashMap<String, String> coordinates) {
        if(coordinates != null)
            this.coordinates = coordinates;
        else 
            this.coordinates = new HashMap<String, String>();
    }

}
